package com.ibeetl.admin.console.web.query;

import org.apache.commons.lang3.StringUtils;
import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.Tool;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;
import java.util.Date;
/**
 *FiFinItemCheckDetailjg查询
 */
public class FiFinItemCheckDetailjgQuery extends PageParam {
    @Query(name = "记账准则", display = true,type=Query.TYPE_DICT,dict="rule_type")
    private String versionNo;
    @Query(name = "业务类型", display = true,type=Query.TYPE_DICT,dict="bu_type")
    private String busType;
    @Query(name = "管理机构", display = true,type=Query.TYPE_DICT,dict="managecom_type")
    private String manageCom;
    @Query(name = "起止日期", display = true,type=Query.TYPE_DATE_BETWEEN)
    private String accountDate;
    private Date accountDateStart;
    private Date accountDateEnd;
    public String getVersionNo(){
        return  versionNo;
    }
    public void setVersionNo(String versionNo ){
        this.versionNo = versionNo;
    }
    public String getBusType(){
        return  busType;
    }
    public void setBusType(String busType ){
        this.busType = busType;
    }
    public String getManageCom(){
        return  manageCom;
    }
    public void setManageCom(String manageCom ){
        this.manageCom = manageCom;
    }
    public String getAccountDate(){
        return  accountDate;
    }
    public void setAccountDate(String accountDate ){
        this.accountDate = accountDate;
        if(StringUtils.isEmpty(accountDate)) {
            return ;
        }
        Date[] ds = Tool.parseDataRange(accountDate);
        this.accountDateStart=ds[0];
        this.accountDateEnd =ds[1];
    }
    public Date getAccountDateStart(){
        return  accountDateStart;
    }
    public void setAccountDateStart(Date accountDateStart){
        this.accountDateStart = accountDateStart;
    }
    public Date getAccountDateEnd(){
        return  accountDateEnd;
    }
    public void setAccountDateEnd(Date accountDateEnd){
        this.accountDateEnd = accountDateEnd;
    }
 
}
